package TestThread2;

import org.junit.jupiter.api.Test;

/**
 * @Author Mr.Wen
 * @Version 1.0
 */
public class MyRun implements Runnable {
    @Override
    public void run() {
        String name = Thread.currentThread().getName();
        for (int i = 0; i < 100; i++) {
            System.out.println(name + "helloworld");
        }
    }

    @Test
    void go() {
        new Thread(new MyRun()).start();
    }
}
